package com.softtown.modules.workflow.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.softtown.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author: Dingyayong
 * @Date: 2019/8/12 16:17
 * @Description: 单据审批段定义实体类
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("swf_doc_phase_def")
public class SwfDocPhaseDefEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 所属公司id
     */
    private Long compId;

    /**
     * 单据类型（数据字典中 字典类型=doc_type)
     */
    private String docTypeValue;

    /**
     * 审批段id
     */
    private Long phaseId;

    private Long emplId;

    private Long userId;

    @TableField(exist = false)
    private String emplName;

    /**
     * 审批段名称
     */
    @TableField(exist = false)
    private String phaseName;


    /**
     * 序号
     */
    private Integer sortNum;

    /**
     * 更新者
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updater;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    /**
     * 更新时间的时间戳
     */
    private String updateTimestamp;

    /**
     * 逻辑删除 0：未删除   NULL：已删除
     */
    private Integer isDeleted;

    /**
     * 单据类型名称
     */
    @TableField(exist = false)
    private String docTypeValueName;

    /**
     * 审批段名称
     */
    @TableField(exist = false)
    private String aprvName;

    /**
     * 审批段名称id
     */
    @TableField(exist = false)
    private String aprvPhaseId;


    @TableField(exist = false)
    private Long approval;
}
